package com.myh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myh.common.utils.PageUtils;
import com.myh.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.myh.gulimall.product.entity.AttrEntity;
import com.myh.gulimall.product.vo.AttrGroupRelationVo;
import com.myh.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-01 11:42:39
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrAttrgroupRelation(Long id, AttrVo attr);

    Long getAttrGroupIdByAttrId(Long attrId);

    void updateAttrGroupIdByAttrId(Long attrId, Long attrGroupId);

    List<Long> getAttrIdsByAttrgroupId(Long attrgroupId);

    Integer selectCountByAttrId(Long attrId);

    void deleteByIds(List<AttrGroupRelationVo> vos);

    List<Long> getAttrIds(List<AttrEntity> attrEntities);
}

